<!DOCTYPE html>

	<head>
		<meta charset="UTF-8">
		<meta content="telephone=no,email=no,address=no" name="format-detection" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<meta name="msapplication-tap-highlight" content="no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="is_webp" content="yes" />
		<title>充值</title>
		<meta name="Keywords" content="用户中心" />
		<meta name="Description" content="用户中心" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
		<meta name="format-detection" content="telephone=no">
		<link rel="stylesheet" href="__TMPL__Public/css/common.css" />
		<link rel="stylesheet" href="__TMPL__Public/css/user.css" />
		<link rel="stylesheet" href="__TMPL__Public/css/public.css" />
		<style>
			body,
			input,
			button,
			textarea,
			select,
			option {
				font-family: Helvetica, Tahoma, Arial, "Hiragino Sans GB", "Hiragino Sans GB W3", STXihei, STHeiti, "Microsoft YaHei", Heiti, SimSun, sans-serif;
			}
			
			.list-footer {
				background: red;
			}
			
			.list-footer a {
				color: #fff;
			}
			
			#add-address-div {
				display: none;
			}
			
			.addressmone1 .save_btn.ok .btn {
				background: red;
			}
			
			input {
				font: 13.3333px Arial;
			}
			
			#btn_submit {
				background: #f23030;
			}
			
			#rechargecardmodel-card_number-error {
				display: none;
			}
			.operat-tips .tips-info {
			   height: 300px;
			   overflow: auto;
			}
		</style>
	</head>

	<body>

			<?php
				$agent = $_SERVER['HTTP_USER_AGENT'];
				if(strpos($agent,"Html5Plus") === false){
			?>
			<header>
				<div class="header">
					<div class="header-left">
						<a class="sb-back" href="{:U('user/center')}" title="返回"></a>
					</div>
					<div class="header-middle">余额充值</div>
					<div class="header-right">
						<aside class="show-menu-btn">
							<div id="show_more" class="show-menu">
								<a href="javascript:;"></a>
							</div>
						</aside>
					</div>
				</div>
			</header>
			<mtc_include file="Public:right_nav" />
			<?php
			}
			?>
			<div class="middle-content m-t-0">
					<!-- 卡号 -->
					<div class="form-group form-group-spe">
						<dl>
							<dt style="width: 60px;">
							<span>金额：</span>
							</dt>
							<dd style="padding-left: 50px;">
								<div class="form-control-box">
									<input type="number" id="money" class="form-control ipt pull-none m-r-10" value="" >
								</div>
								<span id="rechargecardmodel-card_number-error"  class="form-control-error"><i class="fa fa-warning"></i></span>

							</dd>
						</dl>
					</div>

					<div class="invalid"></div>
					<div class="submit-btn">
						<a class="btn-submit" id="btn_submit"  href="javascript:void(0)">下一步</a>
					</div>
			</div>
		<!-- 底部 _end-->
		<section class="mask-div"></section>
		<script type="text/javascript" src="/themes/wnsc_moblie/newMobile/User/js/area/jquery.min.js"></script>
		<script type="text/javascript" src="__TMPL__Public/js/common.js"></script>
		<script src="/themes/wnsc_moblie/newMobile/User/login/js/mobile/layer.js"></script>
		<link rel="stylesheet" href="/themes/wnsc_moblie/newMobile/Shop/css/dropload.css" />
		<script src="/themes/wnsc_moblie/newMobile/Shop/css/dropload.js"></script>
		<script type="text/javascript">
            $(function(){
                $('#btn_submit').click(function(){
                    var money=$('#money').val();
                    if(money<=0){
                        layer.open({
                            content: '充值金额必须大于0'
                            ,skin: 'msg'
                            ,time: 2 //2秒后自动关闭
                        });
                        return;
                    }
                    $.post('/user/rechargePay', {
                        money: money,
                    }, function(result) {
                       alert(result);
                       /* window.location.href=result;*!/
                        if(result==0){
                            layer.open({
                                content: '充值失败'
                                ,skin: 'msg'
                                ,time: 2 //2秒后自动关闭
                            });
                            return;
                        }
                        if(result==1){
                            layer.open({
                                content: '提现已提交，等待审核'
                                ,skin: 'msg'
                                ,time: 2 //2秒后自动关闭
                            });
                            return;
                        }*/
                    }, "json");

                })
            })
		</script>

	</body>

</html>